import request from '@/util/request'


const Api = {};

// 列表
Api.list = function (data) {
    return request({
        url: 'comment',
        method: 'get',
		data:data,
    })
}

Api.reply = function (data) {
    return request({
        url: 'comment_reply',
        method: 'get',
		data:data,
    })
}
// 详细
Api.get = function (id) {
    return request({
        url: 'comment/' + id,
        method: 'get',
    })
}

// 新增
Api.add = function (data) {
    return request({
        url: 'comment',
        method: 'post',
        data: data
    })
}

// 修改
Api.update = function (data) {
    return request({
        url: 'comment/' + data.id,
        method: 'post',
        data: data
    })
}

// 删除
Api.del = function (id) {
    return request({
        url: 'comment/' + id,
        method: 'delete',
    })
}
export default Api